Adding prototype.js code for file uploads