JS validation for file size and type