Added JavaScript Function to submit button