updated js and html