test.js - require not defined in browsers