added javascript for scrolling more template formattings and style