Changed restriction in WText to allow some JS