refactoring bbcode insertion w/ textarea scope