A Gemini JavaScript module for detecting the fold