fixed save/restor of locals and values
no longer need to extend jquery
fix for code generation