Began work on Javascript structure