fixed javascript