The use of the JS || as a shortcut in some cases to deal with default fallbacks is not obvious what it will do unless your a JS expert.
I think it's better to be explicit and write something along these lines
[edit]meant to stick "default" in the else