Fixed typo in variable name in debug.js