JS modifications to support the new look