fix reference error jquery not defined