Add responsive images js

No support for retina yet, but add js to determine which size image to
load.