change example coffee to js