cleaned up ready.js and rigged up file uploading