Improvements to submit alerts.
Fixed javascript file loading issue.