[js] remove unused periodic polling code