duplicate declaration of shareFolder - we had this already - javascript is a function-scoped language not a block scoped language. http://stackoverflow.com/a/10802966