dividing the one JS file to multiple for cleaner code