Changed resources to objects and added objects.js for defining new objects.
Removed a debug-loop that used the array removed in previous commit.
Write text for resources in a loop. For some reason "\n" won't add a newline.
Added functions to increase and decrease resources.