moved core files into core folder to make organising JS files easier as we add more