Fix placement of scripts