Update app.js

Fixed an issue with Chrome changing a function name in the API