javascript for first screen ready