doc: fixed isolate declaration and minor cleanups

isolate declaration was above `using namespace v8`
removed BUILDING_NODE_EXTENSION and tidied up code