javascript" charset="utf-8"></script>
<script src="jsnes/source/ppu.js" type="text/javascript" charset="utf-8"></script>
<script src="jsnes/source/rom.js" type="text/javascript" charset="utf-8"></script>
<script src="jsnes/source/ui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function () {

var url = "ws://" + window.location.host + "/ws";
var ws = new WebSocket(url);

var screen = $("<canvas width='256' height='240'>");
var context = screen[0].getC