added require.main to node.js

it was missing

edit: also appended definitions for colors.js (it extends strings with (non-enumerating) getters for console color and style)