added standard web files

also moved js logic into separate js files