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