Update initialSelector snippet to reflect new API