fixed js for chrome