fixed some issues with js and add lazyload