Fixed #256 even more

Made some adjustments so it works on firefox aswell