cleanup browser entry point js