refactored angular js code into seperate files
additional commit