converted coffee to js