This is how I stored my JavaScript files.
I followed the instructions posted at this link
You can call these JavaScript files using the statement <script src="/s/inputAndCall.js"></script>
The following code section calls the JavaScript file called inputandCall.js
Try the Memory Game