Helper function to provision dom node