Added success handling function to ajax submission function, began writing error handling function.  Added CSRF code to main.js from WearProtection.js