fix js for autoposition banner