Implement javascript handling with QtScriptEngine in place of PyV8
Merging QtScriptEngine implementation with recent changes