added extensions to js and css files if not passed