Update Javascript and Complete Datable function