Refactoring Statics.js and Markdowns.js