bug fix: sanitize function no longer barfs on line index >= array size
browser is self-instantiating, constructor should be private