don't use form action if loaded via ajax
use 4 spaceses for indent in js code
make a an ajax post request for form submit
contact view - send back jsonified errors