jshint fixes
fix json escaping
add Component::setAttribute & Component::setNullAttribute