making lots of stylistic changes and putting in home page js in template file