Create checktree.js

Handles layer checkboxes