expose asObject to precompile function

expose the pre-existing functionality to precompile as an object/string