Fixes in JavaScript Library