Update jQuery Code

- change open-content-popup into function
- fixed bug on append element and can't open popup