Modified fileController to accommodate store.js

Tests not working at the moment, unsure of how to incorporate store.js
into the tests.