Use 'protocol' property to detect javascript: URLs.

This strategy works in Safari 4, unlike what we were doing previously.