Added javascript logging
File upload support for crappy browsers