pmapi.js succesful on jslint (99%)