Added jasmine for javascript testing

Added Rails Jasmine gem. Create common-grant.js and supporting test.