Replace console.log with debug flag and custom log methods
Add cache bursting option (append ?v=123 to module name)