include the JS in the UI. add logging to new ajax method for WEB-9411 +review WEBCR-573