JS backend: fix float and double hashes