Refactored angular code and added gulp