Improve saving with a timer and on leaving textarea