pull changes from upstream repo

pull changes from
https://github.com/sstephenson/prototype/commit/810f0f609df2499034391165da94065afce7c91a
catch if console does not exist and put dummy function in
fix for string comparisons in IE7,8