use js for chrome