Updated JS for working box hover