js: decoding of information