Don't pass the index any more
More refactoring
Refactor get_previous_js_selectors
Add delete functions
Delete the auto added Element