Javascript tree prototype added