Made require(...) act similarly to node (some work left)