Update and rename total to totaljs