changed to js from coffee