fixed delay.js issue