:wrench: Extract js to file and a slight directory structure change for 'demo'
:wavy_dash: Rearranged methods in js to a 'more logical' order