add js to submit buttons, tests passing