rewrite, add js examples and resource links