migrated Gruntfile to coffeescript, minor changes to app scripts