Changes to make jslint happy, removed unused css function