add js crop fun