updated lib delay.js
updated inline scripts