Plugin will look for package.json after not finding bower.json

For #3, did some (hopefully nonoffensive) refactoring