Expand on tab in script tags

closes #399