sample generation

sample generation js file changes