[facebook] Fixes #367 - Update the JS code to Wicket 6.x

(cherry picked from commit 08f30583a3e4bd27d634ddc1d399f229c3781e1d)