changed some $(' into jQuery('