organised JS files into src/ and examples/