added timeout in loader.js