Changed window group order to ensure that JavaScript opens in group 1