Added john resig tmpl, fixed the page js integration concept