fixing js for the header pic