update javascript snippets

change double quota to single quote
update ruby snippets

change double quota to single quote on `it`, `desc`