Javascript upload + renamed js vars