Fix a couple problems
Fix capture funds js issue