Small javaScript library for callbacks