Made it work for firefox, safari still brken