JavaScript lib improvements.