Updated headers in files and jasmine config.

Added license to readme, added headers to JavaScript files, and
configured jasmine to capture exceptions when running tests.