Text-area auto expand in pure javascript