HTML5 Cavas Logic Gate Sim