Reworked js, just edit js for each html rather than each js