updated wallet.js

added some methods.