Changes template and library.js to adapt lms connection