bookResource.js moved to common.