javascript calls done