added setLoop() to loadFile(); lots of style things of varying leves of awkwardness; jshint fun