javascript for highlighted rows in packagin.html functioning properly