Changed curved end cap to a triangle and replaced JavaScript resizing with CSS rules