fixed js map formatting