Better integration between brakepoints and js events