corrects a javascript error for deployment