close js statements