Moved plot into lab.js & added sample code