changed order of scripts in header