split weather component js to day and week parts