JavaScript DOM library API