a little javascript library