styles.js cleanup and fixes