Update: Javascript

added post functionality to submit button.