commited the new square/rectangle js