Wrong path to jquery-ui-script fixed.
Some error printing was added.