JavaScript code sample and baseball hobby outlet