Cleaned up some js, request image paths in initial request instead of
follow up.