update javascript mappings