optimize return; for :js and :jsnoname