Revise markup (index) and Try test functions and loops (js)