js structure changed