Update wui-core.js

Changes to make sure the adding css/width/height to an object doesn't cause errors