Refactor app.js, set a function for liveblog variable configuration