DDF-66: Update javascript to be ie8 friendly.