add function height() to client and leader

<script type="text/javascript" src="js/global.js"></script>
add function height() to client and leader