Added appendToAttribute to Gt.js
Updated lastInsertID to use correct 'ID' convention