add unit tests using QUnit, move functions outside of init() to make them testable, change resize addEventListener event, start using tags for tracking versions