[BUGFIX] JavaScript generation in RTE element browser