Updated tempates with more stuff. Update the js to use jQuery