fixed fetching correct key for uploads (ticket #8)
corrected jquery function call for fetching key parameters