how to make a triangle in javascript