I think the main Javascript Bitcoin libraries is this one:
If you're interested in learning, this looks promising: