reverted code to use js and not coffee becaure of it broke the updates