add javascript console object check