add some js snippet and add readme.md