javascript loop not working.it only satisfies only last value of "i" in the loop (eg:for(var i=0;i<6;i++)).it gives the value of the statement when i incremented to 6 only. can you help in this?