adding js structure part 1