Update module format in examples
A more automatic way to get context. Ref webpack/webpack#115.