updates to dapp for style and jshint.