Updated to work correctly with jQuery loaded

Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>