Fix library.js - pass correct data