refactored title js. add a 'titlejs' parameter to the page front matter to create custom title stuff