Create sndstream.js

This JavaScript file manages the application. All methods such as user registeration, record a sound, upload an image are handled in this file