added unit test - $JS.extend