added MIT license copyright text to js file