Changed coffee to js