First draft of creating useful javascript tools