Rewrite the js to be much faster (and use coffee)