added js structure