part of javascript in common moved to shared.js and chinese page accessing it