added modified api js file for script

(no link in the way)