old working popup js before extension format
fixed most of url code. need to fix processData