updeated custom js fullscreen code