upgraded to jquery 1.9.0
Some refactoring, also added datepicker which closes #19