Adding in JS functionality for animating name