js change for wallPattern