javascript calls read