moved javascript into drupal_add_js() functions, added $js_vars->base_path for use in main.js, updated $form[] #markup from blueimp latest index.html, added 'files' in array to $file for json output and removed array() from $file
added vars.base_path, which I added to the .module file