update Main js