Fix for browsers that don't support JS 1.6