Refactor to use EIEIO (WIP).
Swap long lines in JavaScript.
Don't use number as boolean (style fix).
Fix old function call.