<html>
<head>
<script type="text/javascript" src="debug.js"></script>
</head>
<body>
<button onclick="debug1('clicked!')">Click me</button>
<script>
var debug1 = debug('debug1');
localStorage.debug = 'debug1'
</script>
</body>
</html>