added arrows and edited JS