Update app.js

Seems to work. It breaks whenever non english characters are used for some reason though.