update index and js/main