Conversion from Addr# to Int# isn't correct with the JS backend. Use Addr# instead of Int#.
Addr#
Int#