close to end of js or not?