fixed javascript call