- return raw codes to JS