Refactored the sound script, added input handler and rearranged the files in the site directory