Update path.class.js

Add bounding box calculation, modified rendering to be similar to standard object class