fix gurps.js break BC
fix setAttribute invocation