removed test code from js file and updated read me