sword javascript lib