Added in spin.js, move file upload from firepano.js into main.js