Create checktree.js

Handles the layer checkboxes