square.html improved

added code for square