added test code for WebGL. added battle canvas & added functions to show, hide, toggle & resize battle canvas