Use jsLib to replace window.onload
Use jsLib to attach onclick handler for links