Fixed console definition

uncaught TypeError: Cannot call method 'log' of undefined