Javascript structure completed