recenter using webkit and moz