wrote README.md and fixed initial js file