debugging js code in package support

and split Runtime.cpp file, fix some memory leak
What if the AppDelegate's destruction get called before the `applicationDidFinishLaunching` function call ? Then the runtime haven't been initialized, will it cause any issue ?