added a js tmpl to the www error tmpl