Update common.js

Sorry, i make a mistake in declaring the function, please close!