made initialization Firefox compatible