javasript decoding