Refactoring: extract method: loadHTMLinMemory: for using in templates support