Stable version: test.html added. JS code moved to separate file