add JavaScript.Function
fix wargings
fix GlobalVariable Syntax