The base hover intent Javascript