properly handle coffeescript 1.6 v 1.7