Improving two cases relating to commas
Adding examples/javascript file