refatored and fixed the br bug.

	when the user jumped more than one line, the system was not recognizing the other ones.
fixed table bug on firefox
fixed bug of autocomplete and of table creation