Relocated the script for jquery