Add global js script main.js

1) Add html5 date input fallback, if the browser not support date
input, a jquery datapicker will be provided.