submit button and other javascript