move script to common.js
move script to common.js