fixed javascript tests