updated js and improved readme