Flesh out JavaScript library a bit more