Hook up js to css classes