Update and rename debug.txt to debug.js