fixes some browser compatibility issues, add basic unit tests to test html file, switch element type required from canvas to div, and more.... to tired