refactoring code to be be less shitty
add new js to pages
cover pic fix for pages without cover
refactoring <3