refactor(global to cjs): extract calculateUniqueModuleVariableId function
feat(verify var is available): provide method that returns a free var name to use