update copyright to 2013
ensure json is evaled in global scope and eliminate pollution from local arguments
Merge branch 'dev'