Licence

Added a licence to the JS.