fixing paths in blog.js

using __dirname instead of relative paths