[#11] Changed structure and added very basic animation of querying. Moved more HTML oriented js code to pagemod.js