fixed javascript reference