javascript unit test & cross browsing test