stylehooks.js cleanup