JavaScript modifications