setup js structures