Refactored application to HTML5/JS app.
Fixing commit.