Fixed reference issue

Fixed a reference issue.
I used jquery $.extend method but feel free to replace by Ember methods if you prefer.