Fix typo in javascript call