A general JavaScript toolkit