Create debug.js

The file containing debugging variables and functions