update style and js