move some js to coffee.