A Javascript polar coordinate library