Updated API.js

Deleted onClientLoad call, as not required.