ajax in templates when developing