cleaned up demo, added error check in CSSMangle