However, nothing works with Firefox even after I added it.
What I did notice is that the problem seem to be with the script being within a cell of a table. Once not in a table/cell it works fine with both browsers. Also, the table doesn't seem to behave as it should (i.e. resize to the physical size of the screen) in Firefox.