Initial work on index and javascript