Moving popup content in separate file in js