Fix problems reported by jshint.
Setup dependency on jQuery.
Convert delite code to use jQuery DOM methods.