1 function $(id){
2               return typeof id==="string" ? document.getElementById(id): null
3           }