reorder constant variables, add missing SCRIPT_SRC