improved the way css and javascript are added to the page
updated smarty configuration options