fix indent
fix notice warning if global post not being set, for example on 404 page
move js & css to own files