rmove main to js