while loop using inline javascript to output the value of i * 2 up to 65536