Some broken javascript related to the editor - thanks @scrutinizer-ci

Signed-off-by: emanuele <emanuele45@gmail.com>