fixed some small js bug and added gradient rule for cssbuilder object