js for loading week data