adds more sweet js to switch between tabs for the fastest and the cheapest