changed old-fashion javascript to coffeescript

also regrouped static files