review js files in core/base-nodes and core/cocoa folder