Javascript structure properly ordered.