Extracted auto refresh code to service
Added jslint to gulp