CLI - Added version check to creatingContentBackedRes.js, refactoring