Gradually working on the JS/HTML interface