Moving jquery template script to js file so we can reverse instructions to say delete