fixed bug causing duplicate inclusions of css and js files