update readme with javascript syntax