moving admin template into js file for universal deployment