plain js examples