jQuery( document ) added

jQuery should be used instead of $