Fixed a js bug where script was submitting default values.