Honestly, my compiler / minifier threw a JS Hint error at the double equals, and replacing it with triple equals made it go away. Feel free to disregard if you have different requirements.