added 'app' parameter and error support. Updated gruntfile to open chrome and firefox