Reordered app script requires + added store.js

A slightly more logical order I think.