NuGet allows you to vary contents files based on the target framework of the project. In your case you would design your package files like this:
\contents \windows8-javascript *.html, *.js files \windows8-managed *.xml, *.cs files
Token replacement is supported for these files.