moved debug.js to src/