added ajax functionality to forms; server - updated server post.js to support ajax