partial move of js out of index.html
movded js to external files - out of html