Hi there, this problem is not specific to AEM, but the problem is very specific to front-end JavaScript. It's hard to determine the problem here, but send(); looks like propriatory code from your company's JavaScript file.Also, you're function looks misleading; you might want to refactor the code.