small library index and JS fixes