implementation binary search tree in javascript made easy recursively