A port of scopy to javascript and HTML5