js test update

test fix for undefined varables