added support for passing optional css/js tags