extended text js, improved properties and added on enter key event