update js for theme