Convert coffee to js