Removed coffe-script, fixed js bug