extracted common render/redraw behaviors into function
added jasmine clock for entire test suite