Move scroll call to index.php