Main js updated