Curiously enough, there doesn't seem to be one specific function for that (which may explain the erratic way InDesign sometimes does this). I can't remember off-hand where I saw this trick, but the following works a treat:
app.layoutWindows[0].zoomPercentage = app.layoutWindows[0].zoomPercentage;
-- right after your select
line.