JS port of neon decoder and encoder (WIP)