dom and canvas working on laptop and ipad