Implemented new condition to ajax http request

-Now it checks if php sends back anything after uploading file
     +If php file outputs anything(if an error occurred), ajax call an alert so user knows what went wrong.
     +if php file do not output anything, ajax also won't do call anything
-More changes on this later.