moving javascript and css out of index.html