Fixed checks for browser support
Fixed some JSLint problems
Added popup for upload