refactored node object definitions out of lgg.js into nodes.js