Add version and licensing comment to JS file

Fixes #2.