Initial port of DuSE-MT's java script console from core to plugin

Change-Id: I5799e727b97987ee94df47b2ba8dc5d9a88cebb2
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>