tested js for cross-browsers viewing