fixed ckbox bug

checkbox would not show checkmark, edited js so preventDefault would
only apply to submit buttons