Reusable JS abstractions