Translate coffee to JS