initial refactor
dont call afterRender unless we are on the client
Merge pull request #2 from shanejonas/feature/refactor

Feature/refactor