Moved chosen stuff to common.js