Update petrojs.js