update to head.js

Add a method for detecting if we can use the html5 datepicker. If not,
we fallback to jquery.ui datepicker.