Simple ajax upload and resize application