JS: smaller lazy-load inspired by lazyload