added support for mobile and chrome (instead of just using webkit)