Convert uploaded file to jpg. Change loader. Fix js