updated docs
changed js to coffeescript and put the code inside homepage.js.coffee