Modify placement of endpoint scripts to end of file.