Added main page and some html-js code
Added factory