[#1671] add 'var' statement for 'key' in _jsAction. the key variable in for..in loop was global