Create AjaxTemplate.js

Automatically adds a specified template to either the bottom or top of the page depending on the name space it is in.