split JS into logical separate files.