add js for making the active link correct