add ellipse, move JS to new file