removing console logs
revise to object instead of function
add jsdom and should for testing
refactoring
add tests