Once again datepicker fixed

Date picker becomes broken due to the libraries in head.

BE VERY CAREFUL IF ADDING OR MOVING AROUND LIBRARIES IN HEAD.HTML. The
order of libraries in head.html matters.