Update app.js

onload no longer needed since we load from onload event.