simple JavaScript library