seperates into files for easier use as js grows