Modifies main.js to allow template developers to choose what page template loads first from the order in the metadata.json file. If none are added default is set.