Js For the main interface finished