make javascript examples shorter to remove scrollbar