Update app.js

update iOS8
Merge pull request #16 from michelmelo/master

iOS8 support