fix JS and examples