Create upload.js

Original js function to upload slide images?