Takes JavaScript code, along with a config and returns the original code with tokens wrapped and/or replaced as configured.