This is the 1st draft of the javascript file