I am trying to call an ajax function in ejs but i keep getting an error and am unsure why. I have looked at other posts on this but can not seem to find the answer. Any help