Wrapped the angular app in require and started modularizing