more changes to template, include backward compatibility code for JQuery