Extends JavaScript Objects with other JavaScript objects and tryies to write them to a file.