working script in firefox