update js moved from Dashboard