Fixed #22 , collapsed logic to handle base html page into same conditional sequence of all other resources.