:bomb: Restructured main.js to be more compatible with jquery-example.js