TotalJs initialize