Javascript Console in Safari
In Safari 1.3 there was a debug menu added. This menu is turned off by default, so you have to turn it on yourself. If you would like to turn it on, simply run this commend through terminal while Safari is not running.
defaults write com.apple.Safari IncludeDebugMenu 1