Placing new code in JS files. Updating README.