fix issues with coffee script translation