Added missing 'var' to multiple variable declarations in the example code