moving javascript to end of body

moved from head to end of body to try to work around spinning loading
wheel issue