add js structure