typo in js variable fixed
error with js variable assignation fixed