refactors customer.js
adds small lint changes
fixes test and formatting issues
Merge pull request #650 from zachgersh/customerjs_cleanup

Customerjs cleanup