chore: move api key and html5mode config to common.js, change two binding to one time binding