cleanup of hoverbox javascript