Migrated to Coffeescript. Fixed import errors.