popup JS changes