Avoid crash in iOS 7 simulator.

Before the submit, the method runScript runs before @console_view is prepared.
So, I move the corresponding  process into viewDidAppear.