Add init function for ie.
Move in-html js to app.js.