refactoring js/css files from base.html

adding required js/css files only to the required templates so that base.html is as light as possible.