Nothing to see here. Just added comments.
Modified javascript form submission to use AJAX