debug.js added