Don't leave these in production code. Also it's probably easier if you use your browser's javascript debugger rather than alerts