Refactoring based on jslint; css refactoring too