fixed datepicker javascript, removed some erroneous script tags