tweaking examples and updating context.js to be fully compliant with umd