update to main js file to account for no mode