Prevent default submit on <button> in datepicker

- Added type attribute to buttons in datepicker (and sample methods in rest of document)
- Added form to wrapper of index.html (so we will catch this type of error in the future)
- fixed a "for ID" in datepicker