Correct trailing comma...
Remove reference to global 'document'