How to get the original name of loop variables in JavaScript