JavaScript Function Parameter is returning as Undefined

join shbcf.ru