added controllerSpec.js for spec testing in karma