Update cvshelper.js

Change the wrapper if to check for workspace, and add our div before the footer.