add auto brackets feature to html helper
add auto brackets tests