It seems like the popopups are working okay without the js fix, so I commented it out