js library - like jquery plugin