[code] split inline javascript and add login and menu html files