Fixed display-name bug and added in a function to trigger events on firefox as well as check if it is firefox