Adds comments to ProfileController.js and includes a first stab at unit testing with Jasmine.