Simplify export logic

Also, you might want to consider exporting JSON3 in browsers to allow for functions like `noConflict()`.