fixed ^ and ~ use for freedom, and fixed es5-shim warning

TESTED: 
grunt