* Moved 'ready' func call from index.html
Inline script moved to index.js
* Moved <script> out from index.html
* moved inline-styling to css
* minor formatting changes
* changed ratio from const to let
* refactor
* fix tests
---------
Co-authored-by: sigoden <sigoden@gmail.com>