document more js library stuff