moved all js of examples to examples/js/*.js
formatted examples to make them more user-friendly
moved tabIndex setting to core. Made keyboard events not bubble up