Fixed IE bugs

1. IE doesn't support "toString.call".
2. Change the method".extends" to ".extended" as it is a reserved token
which will cause error in IE.