updated js (Fixed subPageContent issue)