removed javascript in the readme and moved to test.js