update params to new rails 4 strong_parameters
convert js to coffee