updated js dir loading afert upload complete