Move Q_DECLARE_METATYPE declarations from JavascriptModule to more appropriate places. Q_DECLARE_METATYPE has nothing to do with QtScript per se, but is required for QVariant and signal-slot interop.