updated js for all htmls