Moving code from entry.html into Interpreter prototype.