add standard js funcs in popup