Working on load/cache/render in JS