add logic for getting admin template javascripts