Fix for Firefox.
Add more instructions.
Clean up the code a bit.