custom js fixes