XWIKI-11286: Clean the javascript.vm from Flamingo.

(cherry picked from commit d51755958d2f3f4558c79b8ea65404d1753d6c52)