Upload button code only works in firefox