make 2d compatible on chrome