Fixed JQ call which caused event handler to stop acting as expected