update tools; modify custom-elements.js for latest loader