Register jQuery popup and fetching form fields dynamically