Manage text size in javascript