Question: Is it possible to use `require()` (or something similar) on client side?

**Example**

```
var myClass = require('./js/myclass.js');

```

Answer: 
Take a look at [requirejs](http://requirejs.org/) project.
Simply use Browserify, what is something like a compiler that process your files before it go into production and packs the file in bundles.

Think you have a main.js file that require the files of your project, when you run browserify in it, it simply process all and creates a bundle with all your files, allowing the use of the `require` calls synchronously in the browser without HTTP requests and with very little overhead for the performance and for the size of the bundle, for example.

See the link for more info: <http://browserify.org/>