Don't know how to call a javascript function in some ones else's javascript

Is this an Arduino programming question?