two-way data binding with one line of javascript