Avoid input.attr and global var, going .data

Doesn't work
Losing input.data on call keyup
Use of .data Works