[js] compiler: use reg_set for token as it may be larger than 8 bits
[js] compiler: support additional operators
[js] compiler: whitespace