Use correct javascript content type
Moved scripts down