add 'use strict'
add checking hasOwnProperty for extend()
add missing comma