WICKET-5504 AjaxRequestTarget.append/prependJavaScript cannot handle scripts with new-lines anymore

(cherry picked from commit 87df7f443d4d5403fb304fc1272953189d411596)