Do lua file after browser creted (in OnAfterCreated) becuase OutputLuaError may access the host window