Changes to get file selection in the chrome packaged app working