Final bugfix.. works in Firefox now.
Code Cleanup