variable update on filedrop js