refactor display logic to separate module and add karma run for mac with no IE