Pass window param to jquery init