refactor hard coded values
refactor boilerplate code
add jquery and sinon for browser test