JavaScript toolkit