allows two set codes to run depending on browser or node environment