[build][fr] build_data.py: fix build for JS