Update core.js

Added the `struct` modifier and its `clone()` method.