Function to mimic jQuery $ element lookup