Correct formatting on function; remove unnecessary polyfill.