Examples how you should structure your JavaScript classes.