Core mechanism library in javascript.