Corrected persistent deprecation warning in javascript console