Fix bug where files could not be uploaded.

Turned out to be a naming convention mismatch. Also, inline javascript was moved to its own file.

#108
Merge pull request #113 from metridoc/fix_ss_upload

Fix bug where files could not be uploaded.