Hi!
<script src="livesample-basic.js"></script>
This will include external js file.
It works if you put <script> tag on the bottom of <body> content.
If you want to put <script> in head, just wrap all the script with window.onload = function(){ ... }
You can see, fork, download a simple example project here:
http://code.9leap.net/codes/show/28472
-----------
sidestepism