change foundation js object instantiation