moving javascript to end of body