changed order of inline scripts