Updated the js for hover functionality