Updated AMD support (won't set up window.K2 object if AMD-loading)