how to call a library in javascript