moved to cofeescript for the browser code