Update page_tree.js

Add csrf_token validation before AJAX request