Added firefox call compatibility and file sending (only chrome)