Fixing js code for mouseenter mouseleave to work with ajax.

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>