separate js hooks from css