Create main JS structure