fixed JS and titles in template