added to readme js code