Added better error messages, added accept parameter for supported browse...

Added better error messages, added accept parameter for supported browsers to the file input, small javascript improvements, 100% Lint compliant