fix calling of *Command c'tors from JS

Calling Command or JavaScriptCommand without the new keyword
yields an error.

Change-Id: Ic28dc9a4483e59841bdbde02f541074f9bc88308
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>