changed JSPaperRef to RaphPaperRef, polylines and polygons now treated as distinct by Raphael gr device