bgImg.onload scoping fix
moving blog to client side fetching of posts