Switching to a newMain,js