use equals for string comparison
You missed an ||
Merge pull request #441 from nla/js-bugfix

use equals for string comparison