Update js structure