Fixed problem 3 to work with Browserify.