I was running jslint when I wrote this which was complaining about my comparisons. I can update to use more generic conditionals.