switched doge.js to module; refactored more
removed debug code
removed more redundant comments