logging current dot on browser canvas. needs serious refactoring.