sim/runtime: clean up offsets/mapping & DEBUG runtime mode

Runtime now always runs with offsets into an array, setting DEBUG to
true in sim simply adds a comment to the generated javascript about
what the offset is.