js updates and all is set on server based on duration