Added .detach and fixed .remove

Changed:
* added .detach method with tests
* fixed .remove to return removed elements
* workaround for phantomjs (NEED TO TEST IN BROWSER)