Loading dynamic link libraries in JavaScript