reform code struct && fixed the bug loading zrender lib