A first-person engine in Javascript