Update working js structure