draw paths in the browser