This function is used to return the environment settings of the MODLR instance, whether production, or devlopment.
script.environment()
if(script.environment() == 'production') { // do something only in production environment. }