Altered function fileSelected. Previous implementation was not working with recent EnyoJS builds on Chromium.