For debugging rather use console.log that way you can leave your debug messages in instead of having to use alerts