Fixing the show method bug on mouseenter and JavaScript API.