Fixing syntax bugs due to using coffee script doh.