update views and js