converted js to js.coffee. refactored js.coffee code. updated CSS on table.