Javascript Javascript Canvas Reference isPointInPath