Replaced . with 'var' for variable declarations