restructure single Angular js file into separate controllers and directives, as per recommended file structure.