JS triangle done