class js snippet added and some snippets updated