updated the readme, also added a preceding semicolon and a copyright notice to the js file