added sending of emails from javascript
added locking of complete order button when running ajax requests
build