global.js added init some func