#Feature Request 1522, js code added

#Modification:
1. deals with drag, drop, leave events for a file
2. uploads the file to import.php
#todo:
1. import.php have no handler for ajax requests, although it handles the upload, it does not json response

Signed-off-by: Minhaz <minhazav@gmail.com>