Refactored code into different files
Added search box

Not best location, and there seems to be bugs, but it works.
Added url encoding
Added initial read of URL encode