added js file and updated README