Js bugfix

fixes for bulk upload.