Working out require js structure