Added option for using jQuery 2.x