Minor quirks

Check for server error when adding term to Legend
Force loading of jQueryUI files from DHP library