Fixed loading of CSS files
Removed some unuseful comments to clarify the code
Fixed potential XSS vulnerability