JavascriptModule: Remove parenting as the engine is deleted in dtor. Double deletion like this can crash Qt (dont know why it already hasnt done that).