* replaced isTome with something more cross browser compatible