Replace call to deprecated OutputPage->isUserJsAllowed

Change-Id: I10fdb964ad3bd7815606be2199c8816cb8e5418a
Merge "Replace call to deprecated OutputPage->isUserJsAllowed"