totaljs sample