bug fixed in popup js, now window will be created if url is not given