Remove common.js.
Move the helper function from common.js to here.
Get Queue state from new location.
Remove common.js and define queue state in new place.
Update integrated test.
Update documentation.