Would it be worth reworking this file to use coffeescript?