Moved get() to common.js and added some documentation