After many hours of grinding with this pset I finally seem to have both lookup() and parse() functions working correctly.
I tried a few methods for load() and finally seem to have it close to working, when i go to /cat.html my console reports:
GET /cat.html HTTP/1.1
HTTP/1.1 200 OK
GET /favicon.ico HTTP/1.1
HTTP/1.1 200 OK
but notice it didn't call cat.jpg as it should have, and my browser window remains empty.
If i go to cat.jpg directly the console reports:
GET /cat.jpg HTTP/1.1
HTTP/1.1 200 OK
GET /favicon.ico HTTP/1.1
HTTP/1.1 200 OK
but i only get an empty frame on my browser window.
Here's a link to my load() function implementation:
https://gist.github.com/anonymous/89981b46e7d3014102b5578b4f3ab975
Could you please help me figure out why are files not loading when they appear they are. Thank you.