WICKET-5605 Store browser capabilities in local variables in wicket-event-jquery.js

(cherry picked from commit 3ba15c9512f83e094e2f77a6b0b0fa96f2af0e3d)