Edit files with ace and nodejs