completed missing parts in the readme
simplified demo js