Adding unexpand to JS