Cleaned up various core files

Cleaned up canvasLab.js, functions.js, and index.html