cssCore.js additions and fixes