rewrote to use coffee, app.js generated from coffee script, added nav and redirection