Set element as required parameter, change how it is handled
Change this.$el to this.$element
Remove unused variables
Remove unused function