Added browserType to createGrid function