Updates to Javascript docs -- also fixes issue #73