Javascript structure prepared