Node: set correct mime types

As a side effect, this removes all the warnings in the debug console
stating:

> Resource interpreted as script but transferred with MIME type
text/plain.