update inlet.js and some minor fixes