made edits so that code works in production after minification

Handles minification errors..