Reset stack top in entry functions
Add generated code
Change ray tracer js to use 1,000,000 instead of Infinity