Solved it with coffeescript