add example for require js