Re-Implementing JavaScript's == in JavaScript
evanhahn.com