First draft of the Javascript structure