Move to_hash to ActiveRecordExtension module; create jscript file and be included for jstree view only