remove test code
fixed firefox incompatibility