Refactoring

Tons of useless commits for the firefox/chrome compatibility but we finally get it.

There is still an issue if the caller is on chrome and the callee on firefox though. 

Working: Chrome->Chrome, Firefox->Firefox, Firefox->Chrome

(Caller->Callee)