Added a layer property to gameobject.js.