added js config, page close not working