Join require and jQuery