move lazyload js to external file