simple cleanups after coffee-script -> javascript conversion