js animation a little wonky and need to add pears command ability