Moved scripts to head when in production mode